Auto merge of #3901 - BenWiederhake:all-kinds, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 24 Apr 2017 17:11:58 +0000 (17:11 +0000)
committerbors <bors@rust-lang.org>
Mon, 24 Apr 2017 17:11:58 +0000 (17:11 +0000)
commitb987ce4f26a955595d168abdba951ab4bba63dd2
treec6d9d6f8b9e89d133d36f47df98cd86c9c7f454a
parent03efb7fc8b0dbb54973ee1b6188f3faf14fffe36
parent01782fe639ab0802c2030fa0219597ceaa8850b9
Auto merge of #3901 - BenWiederhake:all-kinds, r=alexcrichton

Implementation and CLI-support for `--all-$KIND` flags

This implements #3112.

This means all of the following commands are now possible and meaningful:
```
cargo build --all-bins
cargo build --all-tests
cargo test --all-tests
cargo test --all-bins
cargo check --all-bins --all-examples --all-tests --all-benches
```

The commits try to represent the incremental "propagation" of the new feature:
- core functionality (`cargo check --lib` passes)
- CLI suport (`cargo build` passes)
- additional tests (`cargo test` covers new functionality)

Note that `--all` is already reserved to mean "all packages of the workspace", so it can't be used to mean `--all-bins --all-examples --all-tests --all-benches`.

I intend to follow this up by some other PRs, so please do tell me where I could improve.
src/cargo/core/manifest.rs
tests/build.rs
tests/test.rs